package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Orders implements Serializable {

    private Long id;

    //订单号
    private String number;

    //校区
    private  String campusName;
    //保修楼号
    private String dormitoryNumber;
    //宿舍房间号
    private String dormitoryRooms;
    //报修类型
    private String repairsType;
    //报修内容
    private String statusRepairs;
    //备注
    private String remark;
        //报修时间
    private LocalDateTime orderTime;

    private Integer status;
    public static final Integer ORDER_WITHOUT = 1;
    public static final Integer CANCEL = 2;
    public static final Integer CONFIRMED = 3;
    public static final Integer ORDER_REPAIR_OVER = 4;


    private static final long serialVersionUID = 1L;


//    //报修人学号
//    private Long userId;
//    //报修人
//    private String userName;
//    //手机号
//    private String phone;


//    //下单用户id
//    private Long userId;
//    //地址
//    private String address;
//
//    //收货人
//    private String consignee;
//
//    //订单取消原因
//    private String cancelReason;
//
//    //订单拒绝原因
//    private String rejectionReason;
//
//    //订单取消时间
//    private LocalDateTime cancelTime;

    /**
     * 订单状态 1未接单  2已打回  3已接单  5已完成
     */
    //    //维修状况
    //    private Integer orderStatus;

    //    //开始时间
    //    private LocalDateTime beginorderTime;
    //
    //    //结束时间
    //    private LocalDateTime checkoutTime;

}
